// 基于template/src/widgets/{{appEntities}}/{{ctrls@WIZARDPANEL}}-wizard-panel/{{spinalCase ctrl.codeName}}-wizard-panel-model.ts.hbs生成
import { IWizardPanelModel } from '@/core';
function getModel(): IWizardPanelModel {
    return {
        name: "wizardpanel",
        caption: "",
        codeName: "StateFieldGuide",
        entityCodeName: "IBIZBOOK",
        ctrlMsgModel:[
    ],
        keyPSAppDEField: "IBIZBOOKId",
        majorPSAppDEField: "IBIZBOOKName",
        cssName: "",
        controlType: "WIZARDPANEL",
        showStepBar: true,
        initAction: "Init",
        finishAction: "Finish",
        stateField: "Stepstatus",
        isStateWizard: false,
        buttonCaption: {
            finishCaption: "",
            nextCaption: "",
            prevCaption: "",
        },
        wizardSteps: [
            {
                lanResTag: "",
                title: "查看图书",
                stepTag: "step1",
            },
            {
                lanResTag: "",
                title: "借阅图书",
                stepTag: "step2",
            },
            {
                lanResTag: "",
                title: "归还图书",
                stepTag: "step3",
            },
        ],
        wizardForms: [
            {
                stepActions: [
                    "NEXT",
                ],
                formTag: "FirstForm",
                firstForm: true,
                stepTag: "step1",
                editFormName: "wizardpanel_form_firstform",
            },
            {
                stepActions: [
                    "PREV",
                    "NEXT",
                ],
                formTag: "SecondForm",
                firstForm: false,
                stepTag: "step2",
                editFormName: "wizardpanel_form_secondform",
            },
            {
                stepActions: [
                    "PREV",
                    "FINISH",
                ],
                formTag: "ThirdForm",
                firstForm: false,
                stepTag: "step3",
                editFormName: "wizardpanel_form_thirdform",
            },
        ],
        editForms: [
            {
                codeName: "GuideViewForm",
                name: "wizardpanel_form_firstform",
                actions: {
                    preAction: "",
                    loadAction: 'Get',
                    loadDraftAction: 'GetDraft',
                    updateAction: 'NextAction',
                    createAction: 'Create',
                    removeAction: 'Remove',                
                }
            },
            {
                codeName: "GuideBorrowForm",
                name: "wizardpanel_form_secondform",
                actions: {
                    preAction: "PreAction",
                    loadAction: 'Get',
                    loadDraftAction: 'GetDraft',
                    updateAction: 'NextAction',
                    createAction: 'Create',
                    removeAction: 'Remove',                
                }
            },
            {
                codeName: "GuideReturnForm",
                name: "wizardpanel_form_thirdform",
                actions: {
                    preAction: "PreAction",
                    loadAction: 'Get',
                    loadDraftAction: 'GetDraft',
                    updateAction: 'NextAction',
                    createAction: 'Create',
                    removeAction: 'Remove',                
                }
            },
        ]
    }
}
export const model = getModel();
